# Copyright (c) 2019-2020 The STE||AR-Group
#
# SPDX-License-Identifier: BSL-1.0
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

cmake_minimum_required(VERSION 3.13 FATAL_ERROR)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

# Default location is $HPX_ROOT/libs/testing/include
set(testing_headers hpx/modules/testing.hpp)

# Default location is $HPX_ROOT/libs/testing/include_compatibility
set(testing_compat_headers hpx/testing.hpp hpx/util/lightweight_test.hpp)

# Default location is $HPX_ROOT/libs/testing/src
set(testing_sources testing.cpp)

include(HPX_AddModule)
add_hpx_module(
  testing
  COMPATIBILITY_HEADERS ON # Added in 1.4.0
  DEPRECATION_WARNINGS
  GLOBAL_HEADER_GEN OFF
  SOURCES ${testing_sources}
  HEADERS ${testing_headers}
  COMPAT_HEADERS ${testing_compat_headers}
  DEPENDENCIES hpx_assertion hpx_config hpx_functional hpx_preprocessor hpx_util
  CMAKE_SUBDIRS examples tests
)
